package com.xms.security.service;

import com.xms.organization.entity.Systemuser;

import java.util.UUID;

/**
 * <p>
 * IAccountService
 * </p>
 *
 * @author migo
 * @since 2021/9/4
 */
public interface IAccountService {

    boolean existsAccountName(String accountName, UUID currentUserId);

    Systemuser getByAccountName(String accountName);

    Systemuser getByAccountNameAndPassword(String loginName, String password);

    boolean isValidePassword(String inputPassword,  String password);

    void updateLastLoginTime(UUID systemuserid);

    boolean updateLastVisitTime(UUID systemuserid);
}
